package com.zzyl.nursing.task;

import com.zzyl.nursing.service.member.IReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author: menghao
 * @version: 1.0
 * @Date: 2025/08/23 19:47
 * @Description:
 */
@Component("reservationJob")
@Slf4j
public class ReservationJob {
    @Autowired
    private IReservationService reservationService;

    public void updateReservationJob() {
        reservationService.updateReservationStatus();
        log.info("定时更新预约状态成功！");
    }
}
